import url from '../url-config.js'
import req from '../request'
export const getFileToken = () => {
    return req.get(url.fileToken)
}
export const getFile = ({ id }) => req.get(url.filePreview + '/' + id, { id })
export const getFileUrl = ({ id }) => {
    return `${url.filePreview}/${id}`
}
export const commonApi = {
    getFile,
    getFileToken,
    getFileUrl,
}
